﻿<UserControl x:Class="Kokomo.PeInspector.DelayLoadView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:r="clr-namespace:Kokomo.PeInspector.Reflection"	
			 xmlns:ui="clr-namespace:Kokomo;assembly=Kokomo.UI"
			 xmlns:c="clr-namespace:Kokomo.Controls;assembly=Kokomo.UI"
			 xmlns:env="clr-namespace:Kokomo.Environment;assembly=Kokomo.Environment"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
	<Grid>
		<ContentPresenter
			Content="{Binding Content}"
			ContentTemplateSelector="{x:Static env:AttributedViewTemplateSelector.Default}"
			/>

		<Border>
			<ContentPresenter
				Name="progress"
				VerticalAlignment="Center"
				HorizontalAlignment="Center"
				Height="20"
				Width="200"
				Content="{Binding LoadProgress}"
				>
			</ContentPresenter>

			<Border.Style>
				<Style TargetType="{x:Type Border}">
					<Setter Property="Visibility" Value="Hidden"/>
					<Style.Triggers>
						<DataTrigger Binding="{Binding IsLoading}" Value="True">
							<Setter Property="Visibility" Value="Visible"/>
						</DataTrigger>
					</Style.Triggers>
				</Style>
			</Border.Style>
		</Border>
	</Grid>
</UserControl>
